StockDetail
This table contains a ticker level summary of some earnings related information. This information is also available in other records but is collected here for convenience.
METADATA
Attribute | Value |
---|---|
Topic | 3225-market-statistics |
MLink Token | SRMLinkAnalytics |
Product | SRAnalytics |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
ticker_at | enum - AssetType | PRI | 'None' | |
ticker_ts | enum - TickerSrc | PRI | 'None' | |
ticker_tk | VARCHAR(12) | PRI | '' | |
eMove | FLOAT | 0 | implied earnings move from LiveSurfaceTermeMove | |
eMoveHist | FLOAT | 0 | average historical trail 8 quarter earnings move from LiveSurfaceTermeMoveHist | |
nextEarnDays | INT | 0 | estimated days to next earnings event resets to next event immediately after earnings passes | |
nearEarnDays | INT | 0 | estimated days to next earnings event resets to next event 2 days after the most recent event has passed | |
nextEarnTime | VARCHAR(6) | '' | estimated time of day of next earnings event | |
nextEarnDate | DATE | '1900-01-01' | estimated next earnings date note that implied adjustements to this day are available in LiveSurfaceTerm | |
isNextEarnDateConfirmed | enum - YesNo | 'None' | next date has been confirmed usually by the company | |
nextDDivAmt | FLOAT | 0 | next dividend payment amount | |
nextDDivDays | INT | 0 | next dividend payment date | |
numOptions | INT | 0 | number of listed options on this underlier if any | |
timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
ticker_tk | 1 |
ticker_at | 2 |
ticker_ts | 3 |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRAnalytics`.`MsgStockDetail` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`eMove` FLOAT NOT NULL DEFAULT 0 COMMENT 'implied earnings move (from LiveSurfaceTerm.eMove)',
`eMoveHist` FLOAT NOT NULL DEFAULT 0 COMMENT 'average historical (trail 8 quarter) earnings move (from LiveSurfaceTerm.eMoveHist)',
`nextEarnDays` INT NOT NULL DEFAULT 0 COMMENT 'estimated days to next earnings event (resets to next event immediately after earnings passes)',
`nearEarnDays` INT NOT NULL DEFAULT 0 COMMENT 'estimated days to next earnings event (resets to next event 2 days after the most recent event has passed)',
`nextEarnTime` VARCHAR(6) NOT NULL DEFAULT '' COMMENT 'estimated time of day of next earnings event',
`nextEarnDate` DATE NOT NULL DEFAULT '1900-01-01' COMMENT 'estimated next earnings date (note that implied adjustements to this day are available in LiveSurfaceTerm)',
`isNextEarnDateConfirmed` ENUM('None','Yes','No') NOT NULL DEFAULT 'None' COMMENT 'next date has been confirmed (usually by the company)',
`nextDDivAmt` FLOAT NOT NULL DEFAULT 0 COMMENT 'next dividend payment amount',
`nextDDivDays` INT NOT NULL DEFAULT 0 COMMENT 'next dividend payment date',
`numOptions` INT NOT NULL DEFAULT 0 COMMENT 'number of listed options on this underlier (if any)',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='This table contains a ticker level summary of some earnings related information. This information is also available in other records but is collected here for convenience.';
SELECT TABLE EXAMPLE QUERY
SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`eMove`,
`eMoveHist`,
`nextEarnDays`,
`nearEarnDays`,
`nextEarnTime`,
`nextEarnDate`,
`isNextEarnDateConfirmed`,
`nextDDivAmt`,
`nextDDivDays`,
`numOptions`,
`timestamp`
FROM `SRAnalytics`.`MsgStockDetail`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk';
Doc Columns Query
SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='StockDetail' ORDER BY ordinal_position ASC;